<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\library\services\FangAttrsService;
use App\library\services\Release;
use App\Models\Cities;
use Illuminate\Http\Request;

class FangReleaseController extends Controller
{
    /**
     * wiiliam
     * 租房配置信息
     * @return mixed
     */
    public function outRentFangAttr()
    {
        $where = ['name', 'id'];
        //房源朝向
        $fang['directions'] = FangAttrsService::direction($where);
        //房源类型
        $fang['house_type'] = FangAttrsService::houseType($where);
        //房源租赁方式
        $fang['fang_rent'] = FangAttrsService::fangRent($where);
        //房源配置
        $fang['fang_config'] = FangAttrsService::fangConfig($where);
        return $this->success('查询成功', $fang);
    }

    public function outRentCreate(Request $request)
    {
        $post = $request->post();
        $res= Release::outRentCreate($post);
    }


}
